import 'package:flutter/material.dart';
import 'package:flutterproject/util/extension/int_extension.dart';
import 'package:flutterproject/util/margin_padding_util.dart';
import 'package:flutterproject/widget/app_bar_common.dart';
import 'package:flutterproject/widget/text/text_common.dart';
import 'package:get/get.dart';

class ChildAccountDetailPage extends StatelessWidget {
  const ChildAccountDetailPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: Get.width,
      height: Get.height,
      color: Color(0xFFF6F6F6),
      child: Column(
        children: [
          AppBarCommon(title: "子账号"),
          Container(
            width: Get.width,
            margin: MarginPaddingUtil.symmetric(vertical: 23, horizontal: 20),
            padding: MarginPaddingUtil.symmetric(vertical: 42, horizontal: 37),
            decoration: BoxDecoration(
                color: Colors.white,
                borderRadius: BorderRadius.circular(20.width)),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                TextCommon(
                  "已绑定子账号",
                  size: 28.sp,
                  fontWeight: FontWeight.bold,
                ),
                40.heightBox,
                Row(
                  children: [
                    TextCommon(
                      "主账号",
                      size: 28.sp,
                      fontWeight: FontWeight.w500,
                    ),
                    Spacer(),
                    TextCommon(
                      "13455647894",
                      size: 28.sp,
                      fontWeight: FontWeight.w500,
                    ),
                  ],
                )
              ],
            ),
          ),
        ],
      ),
    );
  }
}
